import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

const statisticAnalysis = {
    path: '/statistic-analysis',
    component: Layout,
    name: 'StatisticAnalysis',
    meta: {
        title: '统计分析',
        code: 'dlyh_r_a9_1'
    },
    redirect: '/statistic-analysis/maintenance-data',
    children: [
        {
            path: 'maintenance-data',
            name: 'MaintenanceData',
            meta: {
                title: '养护数据统计',
                iconSvg: 'test-data',
                code: 'dlyh_a9_b24_1'
            },
            component: LayoutInset,
            redirect: '/statistic-analysis/maintenance-data/index',
            children: [
                {
                    path: 'index',
                    name: 'MaintenanceDataIndex',
                    meta: {
                        title: '列表'
                    },
                    component: () => import('@/views/statistic-analysis/maintenance-data/index'),
                    hide: true
                }
            ]
        },
        {
            path: 'daily-statistic',
            name: 'DailyStatistic',
            meta: {
                title: '日常养护计量统计',
                iconSvg: 'test-data',
                code: 'dlyh_a9_b24_2'
            },
            component: LayoutInset,
            redirect: '/statistic-analysis/daily-statistic/comprehensive/index',
            children: [
                {
                    path: 'comprehensive',
                    name: 'Comprehensive',
                    meta: {
                        title: '综合统计',
                        code: 'dlyh_b24_c2_1'
                    },
                    component: LayoutInset,
                    redirect: '/statistic-analysis/daily-statistic/comprehensive/index',
                    children: [
                        {
                            path: 'index',
                            name: 'ComprehensiveIndex',
                            meta: {
                                title: '列表'
                            },
                            component: () => import('@/views/statistic-analysis/daily-statistic/comprehensive/index'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'summary-table',
                    name: 'SummaryTable',
                    meta: {
                        title: '清单汇总表',
                        code: 'dlyh_b24_c2_2'
                    },
                    component: LayoutInset,
                    redirect: '/statistic-analysis/daily-statistic/summary-table/index',
                    children: [
                        {
                            path: 'index',
                            name: 'SummaryTableList',
                            meta: {
                                details: ['SummaryTableDetail'],
                                title: '列表'
                            },
                            component: () => import('@/views/statistic-analysis/daily-statistic/summary-table/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'SummaryTableDetail',
                            meta: {
                                title: '查看明细',
                                activeMenu: '/statistic-analysis/daily-statistic/summary-table/index'
                            },
                            component: () => import('@/views/statistic-analysis/daily-statistic/summary-table/detail/index'),
                            hide: true
                        }
                    ]
                }
            ]
        },
        {
            path: 'maintenance-project-statistic',
            name: 'MaintenanceProjectStatistic',
            meta: {
                title: '养护工程计量统计',
                iconSvg: 'test-data',
                code: 'dlyh_a9_b24_3'
            },
            component: LayoutInset,
            redirect: '/statistic-analysis/maintenance-project-statistic/index',
            children: [
                {
                    path: 'index',
                    name: 'MaintenanceProjectStatisticList',
                    meta: {
                        title: '列表',
                        details: ['MaintenanceProjectStatisticDetail']
                    },
                    component: () => import('@/views/statistic-analysis//maintenance-project-statistic/index'),
                    hide: true
                },
                {
                    path: 'detail',
                    name: 'MaintenanceProjectStatisticDetail',
                    meta: {
                        title: '查看明细',
                        activeMenu: '/statistic-analysis/maintenance-project-statistic/index'
                    },
                    component: () => import('@/views/statistic-analysis/maintenance-project-statistic/detail/index'),
                    hide: true
                }
            ]
        }
    ]
}
export default statisticAnalysis
